﻿
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using FirstFloor.ModernUI.Windows;
using FirstFloor.ModernUI.Windows.Navigation;
using MergeTool.UI.ViewModels;

namespace MergeTool.UI.Views
{
    /// <summary>
    /// Interaction logic for MergetoolView.xaml
    /// </summary>
    public partial class MergetoolView : UserControl, IContent
    {
        public MergetoolView()
        {
            InitializeComponent();
            this.DataContext = new MergeToolViewModel(this.RichTextFlowOutput, this.RichTextOutput, this.Dispatcher);
        }

        public void OnFragmentNavigation(FragmentNavigationEventArgs e)
        {
            
        }

        public void OnNavigatedFrom(NavigationEventArgs e)
        {
            
        }

        public void OnNavigatedTo(NavigationEventArgs e)
        {
            ((MergeToolViewModel) this.DataContext).InitializeBranchManager();
        }

        public void OnNavigatingFrom(NavigatingCancelEventArgs e)
        {
            
        }
    }
}
